import router from './public/router.js';
import gloable_state from "./public/state.js";
import "./public/controller/index.js";
import common from "./public/common.js";
import setupCustomComponents from  "./public/customComponents.js"
const vueApp = Vue.createApp({
    components: {
        'layout': Vue.defineAsyncComponent( () => M.loadVueModule('../views/layout.vue') )
    },
    template: '<layout></layout>'
});
vueApp.use(setupCustomComponents) ;
vueApp.use(router)
vueApp.use(vant);
vueApp.config.globalProperties.$gloable_state =gloable_state;
vueApp.config.globalProperties.$common =common;
//全局状态
M.gloable_state=gloable_state;
vueApp.config.isCustomElement = tag => tag.startsWith('ming-input');
window.vueApp=vueApp;
vueApp.mount('#root');